#include "Device/Buzzer.h"
#include "Hardware/Timer.h"
#include "Hardware/IO.h"

#define BuzzerIO P2 //P2.3口为蜂鸣器
#define BuzzerBit 3

void Beep(uint8 ms)
{
	PortSet(BuzzerIO,0,BuzzerBit);
	Delay(ms);
	PortSet(BuzzerIO,1,BuzzerBit);
}